package com.example.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.entity.SpPl;
import com.example.mapper.SpPlMapper;
import com.example.service.SpPlService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class SpPlServiceImpl extends ServiceImpl<SpPlMapper, SpPl> implements SpPlService {

    @Autowired
    private SpPlMapper spPlMapper;

    public List<SpPl> selectList(SpPl spPl) {
        return spPlMapper.selectList(new QueryWrapper<SpPl>().eq("sp", spPl.getSp()));
    }
}
